Added check for the existence of X-FMC and its status and disabling NAV2 and AP heading when it is in LNAV mode