Fix bug when purging a URL without a path