Slight improvement in robustness of empty test on rectangle