Minor bugfix for on_beat_stop_playing block