Fixes "division by zero" error

eg: Compile DocView and resize the contents panel all the way to the
right. The gradient panel ends up having < 1 width, which means it is
not visible any more, so really the GradientFill doesn't need to do
anything.
Fixes compilation error in MDI prototype for alienwindows branch