fix php warning while testing filters with regexps too complex for the database