Properly check framebuffer status when generating FBOs.