polygon clipper: ensure we return from function