detect conditions where loop cannot logically end

Change-Id: I7e2ec1e09614510e6798ba8d5b9990c189a8dbb9
return false if the clip region would div by zero

Change-Id: Ia0928306b3608df9c48a19b517edac54ba43bd57