Only decode for non-zero terms

Fixes issue where collection.raw end document marker was being decoded
as a single space…