glir: Don't draw when count is zero

Fixes issue #661
Merge pull request #674 from almarklein/issue661-2

glir: Don't draw when count is zero