Wrapped drupalgap_check_connection() in a try catch and made it automatically be online with an 'Ethernet connection'.
Refer to previous commit message for info about changes here.