MOB-297 Added check for undefined as the navigator connection object is ...

...undefined when phone is in flight mode.