Fix NullPointerException causing the audio recorder to crash