Added extra check to fix issue with zero height.
Added extra check to fix issue with zero height.

jcupitt/libvips,jcupitt/libvips,lovell/libvips,jcupitt/libvips,lovell/libvips,lovell/libvips,lovell/libvips,jcupitt/libvips