[0.17.2.0] Planetary Piano demo timer breaks, sometimes steals tokens

The timer on the Planetary Piano demo sometimes freezes.
If you start a game of the same type (e.g. 8-key endless on 8-key demo), sometimes, the notes on screen don’t clear, and immediately after the “get set” text, the game ends immediately.

Steps to Reproduce

Start a game of Planetary Piano on a cabinet with a frozen timer.

What I expected to happen

The game starts normally.

What happened

The game occasionally ends immediately after starting, stealing your tokens.