The function HasWarning() checks if there was a warning during the mapping and returns true in case of an event.
Note: Only the errors up to the mapping rule where this function is called are considered.
Note: The function also returns true when a mapping error occurs.