Fix condition for checking return value of play_sound()