native: added null check and remove EGL fallback

Change-Id: I589a1b0eae4c885ada1ee58a69bf2bcace822a45