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