Handling empty pathinfo