NEXUS-6891: NPE on publishing

Filter was applied to null version causing NPE