Minor change if curl_exec() fails

Check that $result['json'] is set in initApp() function, if curl_exec() fails
Merge pull request #21 from pablogumilla/master

Minor change if curl_exec() fails