[Shape Tracing] fixed issue with boundaries detection on iOS7 devices