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

Probable fix for #3148, fixed regexp to support better url handling, plus meaningful error management

@Kartones please CR this, hope this will keep Rollbar much cleaner, I think there was an actual problem here.