Fix the infinite loop of NullPointerException when TTS is initialized
while there is something wrong with the TTS engine in some devices.