fixed crashes in nuiTopLevel in some corner cases
better handling of broken wave files loading