Added a check that wont load results on results page if no query has been made

Signed-off-by: unknown <cnwnh1@cnwcb5a.cnw.co.nz>