Probable fix for #3148, fixed regexp to support better url handling, plus meaningful error management
Merge pull request #1315 from CartoDB/3148-NoMethodError_undefined_method_for_nil_NilClass

Probable fix for #3148, fixed regexp to support better url handling, plu...