Fixing reference to search results query

Search results were not accessing 'q' correctly, which was nested within 'cropsearch'.

Accidentally pushed this to Farmbot, I'm not going to bother with rebasing. 
Thanks for writing test cases!