UASWaypointManager: protect against possible null pointer. Fixes #1117
Waypoint2DIcon: protect against possible null pointer. Fixes #1117
Merge pull request #1119 from mavlink/ptr_fix

Ptr fix - fixes #1117