filter wav/midi files for respective file menu browsers, handle possible null pointer from listFiles()