catching cases when callers provide an invalid regex when retrieving properties