Don't use index for empty query

Because we can't use index with empty query. Groonga's table doesn't
accept empty key. So we can't register a document to index with empty
key.

[groonga-dev,02052]

Reported by Naoya Murakami. Thanks!!!