Fix problem with event2json.rpy on queries with no special port on URL