snippet_html: fix a crash bug when --query is empty

[groonga-dev,02097]

Reported by Naoya Murakami. Thanks!!!