Only exclude null values when the exclude_null option is set.
Allow for count queries using Model::query.