Fix Issue 1568

Fixes #1568.

Check framebuffer status before attempting to render.