Fix a crash when viewing a query for the first time
Fix a crash when viewing a query for the first time

Change-Id: I87765226ea13df4f598108ec2579d3b91b520a50

Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server