NullPointerException in case of error on opening native camera fixed.