Added an assertion, to be properly notified if the context management breaks, because no GlResource was created prior.