Untested fix for the out-of-bound failure in stylesheet iterator.