Ensure non-negative height is passed when drawing a rectangle - bug #1163.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>