Fix for OsmAnd project bug that throws array out of bounds error when editing the qaypoints list

The additional methods support changes in the OsmAnd project to fix an
exception thrown when the waypoints list are edited (particularly if
Destination is selected for removal). Code changes and a pull request
have been provided to both projects