Don't crash when framebuffer is a nullptr.

nullptr keyword usage 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 in the middle of a game, we've got bigger issues.