Check that mediaPlayer is instantiated when handling error