[Android] Don't try to display without a surface

* Android apps would still try to call `eglSwapBuffers()` even though they don't have a valid surface right now (i.e. due to being inactive/in background).