[gui] Fix crash in TextureCache if a texture is invalidated, first level texture cache was not updated