Removed duplication from WhereWriter::writeWhereIsNotNulls and WhereWriter::writeWhereIsNulls