Make sure AudioStreamHandle is valid before using it.