Check nil in view rather than database

Because empty string equals to nil in Rroonga. Groonga doesn't support
NULL.