Check if waypoint altitude is relative. Fixes #1197

Fixes #1197.