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