If substitution in gosper_sum fails - take limit instead (issue 2934)