- Patch #1346166 by Dave Reid: Improve performance of token_replace() if there are no tokens to replace.