Handle zero-size term facets. Fixes #282.