Fixed incorrect logic which caused exceptions when playing non-music media