Fix crash with Nvidia 331.38 drivers on Linux

glDeleteFramebuffers appears to crash when called with zero FBOs to
delete.