Use fetchValue directly as we do not need the query anyway

Signed-off-by: Michal Čihař <michal@cihar.com>