fixes #5235: it's impossible to create filters with invaid searches