PIM-3406: Fix boolean filter on Mongo implementation