Fixing app crash when server side is not available