Node now only tries to register if it has a valid internet connection