Fix "KeyError: 'http'" exception.  Check for "http" key and return None if not found.  Also removed some redundancies and improved readability.
Fix "KeyError: 'http'" exception.  Check for "http" key and return None if not found.  Also removed some redundancies and improved readability.

adegwerth/ArcREST,Esri/ArcREST