Handle zero value in CLI hql

See https://trac.openmicroscopy.org.uk/ome/ticket/12572

To test this PR:
- check the new CLI unit tests pass in Travis
- reproduce the scenario linked in the ticket i.e. check the output of an hql query returning a field with a zero value (except `_id`)