Fix NPE on postpatch path setting.