Pass causing exception through on malformed URL.
Merge pull request #941 from square/jw/caused-by

Pass causing exception through on malformed URL.