fix possible legacy path translation crash (thanks vdrfan)