Fixes a bug which could cause a crash if the rect size is very small, and CGRectInset would return a (+Inf, +Inf, 0, 0) rect which is invalid