lib.xcsoar_.analysis: check for takeoff_location

and landing_location before using them.