Bug fix for background music

The code was crashing when no music was playing at the moment