Fix work with None and boolean in whoosh backend.