[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).
Merge pull request #656 from MarioLiebisch/android-nosurface-display

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