fix to ensure cordova is ready before checking network status causing incorrect messaging to appear when device is online