xml: fix mand api breakage when path is null

Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>