Corrected query_form template to allow for no order field.