Added more checks when trying to parse an URL using URI and allow the request to go to the flutter delegate.