use exceptions when we cannot build the queries for parts or flags, just like we did for the item query
use exceptions when we cannot build the queries for parts or flags,
just like we did for the item query

fixes regression when part or flag table was empty
(introduced by me in r1121073)

svn path=/trunk/kdesupport/akonadi/; revision=1121122

kolab-groupware/akonadi,kolab-groupware/akonadi,kolab-groupware/akonadi,kolab-groupware/akonadi