Detect if "url_data" contains proxy attributes before using them.

Fix proposed by @colwilson in issue #555.