fix #23043: Playing score with Loop enabled causes crash