Bugfix for wms requests with width or height of one

Fix an issue for WMS requests with width or height of 1, which made MapServer throwing an exception 'Invalid image extent, minx=nan, miny=nan, maxx=nan, maxy=nan', because of division by null.