Return early once stop token is found.
# What does this PR do?

Previously even after finding a stop token, other stop tokens were considered, which is unnecessary and slows down processing.

Currently, this unnecessary overhead is negligible since there are usually 2 stop tokens considered and they are fairly short, but in future it may become more expensive.

_The documentation is not available anymore as the PR was closed or merged._