Fix bug in audio_element_sound implementation

Hello Bernhard,
I encounter sometimes an error in IE when playing audio: "Bad state: No element" coming from "_onAudioEnded".

The fix seems easy enough and works for me.