BS-11008: avoid NPE when it is on a local repository