Fixed a bug that occurred when trying to play sounds if no device is available