[BZ-1050987] avoid NPE when it is not possible to locate a pom.propoerties file
(cherry picked from commit 2752ec9c382ead32e9bbc33b8f50695f6cb79679)