Fixed app crashing on lack of internet connection.