Fixed Texture::getMaximumSize() breaking context management

Fixed a bug where calling Texture::getMaximumSize() before any GlResource is created would break context management.