Don't crash when framebuffer is a nullptr.

nullptr should be fine now, since we support C++11 everywhere.

Should fix https://github.com/hrydgard/ppsspp/issues/6529, but I'd imagine if the framebuffer is ending up as null somewhere, we've got bigger issues.