Don't render if width or height is 0.

Fixes #834 

I'm not sure if there's a better way to do this at a level lower than the widget, but it seem like a problem that needs to be addressed as part of the render loop.