Plane: cope with uartD being NULL
AP_AHRS: fixed a build warning