Fixing bug that caused a stack overflow error when searching a substring in reverse.