Don't crash when framebuffer is a nullptr.
Merge pull request #6530 from thedax/tex-cache-crashfix

Don't crash when framebuffer is a nullptr.