Minor fix to operator ^

Just a small fix as discussed here: https://github.com/stan-dev/stan/pull/681/files#r14264143 (comment on line 171 of file src/stan/gm/grammars/term_grammar_def.hpp).