FIx bug in waypoints editor that throws an exception under some circumstances

1) Modify IntermediatePointsDialog class to fix an array out of bounds
exception caused by removing the destination point during editing. This
also required a fix to the TargetPointsHelper class in the OsmAnd-Java
project.
2) Changed the order of list items in the planning layer inf bar menu.