Fix typo related to invalid regex handle errors.