If user chooses to create a new polygon feature by copying all values from previously collected feature, and then tries to clear all locations on the polygon geometry, application will crash.
Clear last location instead of clearing all locations. Upon removing the last location, the geometry does not redraw. Pan to trigger the refresh. The vertex is removed.