Fix for bug that throws array out of bounds error when editing the waypo...

...ints list

The IntermediatePointsDialog class throws an exception when the
waypoints list is edited (particularly if all points including the
Destination are selected for removal). The fix requires additional
methods in the TargetPointsHelper class in the OsmAnd-Jni project and a
fix and pull request have been provided to both projects