Handle empty url arguments more gracefully