Fix crash problem caused by onPause message when GLSurface is not ready