Fixes #127: Optional string regex-based rule throws if key is missing