Fix search filter counts in telemetry
Created by: attfarhan
For the counts of new search fields we started logging, instead of returning undefined
when the field was not present in the query, I set it to count: 0
, which isn't compatible with the way we count the presence of fields in the backend. This checks to make sure the field is present in the query before logging the count.
Also modifies to use the query parser instead of just using includes
.