NXP-14427: fix NPE when parent is null, fixing publication