not calling 'advanceTime' any longer when context is lost (closes #430)

Previously, I only avoided 'render' calls; however, there's also normal user-code that will fail while the context is invalid (e.g. creating a texture). So I shouldn't call any user-code before the context is restored.