Fix null exception message when losing internet connection. #1554