Remove redundant if from query test

Signed-off-by: Kirill Zotkin <kirillzotkin@gmail.com>