Allow empty value fields in database filters

Fixes #14702.