Fix off by one error in out-of-bound check.

Avoid reading pass the end of an array in TTreeFormula.
This fixes http://root.cern.ch/phpBB3/viewtopic.php?t=16969.