StTextureCache: don't crash if we fail to allocate a framebuffer

https://git.gnome.org/browse/gnome-shell/commit/src/st/?id=ac76940530039654cf3f01e243541a5c990eb269&context=1&ignorews=0&ss=0