Parser: Refactor UpdateExtractor in handling invalid input