Fix null pointer exception on double clicking waypoint (wxWidgets 2.9.4, Mac OS X 10.8.3)