protect against null paths in cases where GAV version is an expression.