Add special handling for zero value in HqlControl.filter()

This commit should allow zero-values not to be filtered out when returning
the output of a query.
Add unit tests for HqlControl.filter()
Merge pull request #3116 from sbesson/12572_hql_zerovalue

Handle zero value in CLI hql