moving the relation assignment so it doesnt get defined for tax_query in the shortcode unless there is at least one actual tax query being added