updated code that maps items to emit error in case of itemmap directive having invalid regex / mismatched backreferences in replacement that previously caused silent exceptions and only clue was ZERO_ITEMS status