Catch possible NullPointerExceptions raised when trying to get line number for non-existent version fields.

We have found a NullPointerException occurring when parsing pom files with plugin fields without version field specified.
The patch from this pull request allows to deal with this situation and others similar to that.