rosie db: fix failure for no-opt-props suite.

This fixes a search or query processing error when the results contain
a suite with no optional properties at all (i.e. just owner, project,
and title).
Merge pull request #1409 from benfitzpatrick/rosie-db.fix-no-optional-props

rosie db: fix failure for no-opt-props suite.