Fixed Texture::getMaximumSize() breaking context management

Fixed a bug where calling Texture::getMaximumSize() before any GlResource is created would break context management.
This line wasn't 100% necessary. Actually now that I think of it, searching for places where contexts are required from static methods, the only critical places have already been taken care of. We can remove this somewhat strange looking check if you want.