Minor change if curl_exec() fails

If curl_exec() fails, in makeRequest() function, then initApp() also fails because $results['json'] does not exists. I think this could be a minor check to prevent error.