Handle Malformed URIs Bug

This is swapping an error for another one:
```bash
renelvon @ merchant ~ % python2
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> [1, 2, 3, 4].get('data')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'get'
>>>
```