Don't throw a bad path exception when the path is empty.