Handle no current context when rendering in a main_loop

When rendering in the main loop and with FULL_ES2=1, I was getting the following exception in GL.newRenderingFrameStarted():

    Uncaught TypeError: Cannot set property '0' of undefined

The cause is that GL.newRenderingFrameStarted() assumes there is a currentContext.