Fix #2837 - Check for null waypoint coords in hasIdenticalWaypoint

Fixes #2837