Issue #3399101: The code in the AllTokens class wrongly assumes that how to replace tokens changes when the Token module is installed