Avoid passing null to xapian