avoid checking for intersections when the list of points contains empty values,
add additional check when close button is used,
do not create a new point when clicking the map if the current point is not valid (empty)
closes #220
round of coordinates returned by detection, map click and map drag, closes #223