Fix #2837 - Check for null waypoint coords in hasIdenticalWaypoint

Fixes #2837
Merge pull request #2838 from campbeb/fix2837

Fix #2837 - Check for null waypoint coords in hasIdenticalWaypoint