(fix) Avoid RTE with null path.