Finder GetAddress Script being ignored

As described in this post I’ve successfully modified the Get Address script for Safari and Finder to replace parentheses with % codes.

The Safari one works perfectly. The Finder one doesn’t. It seems that the return value from GetAddress is being ignored or overridden by something else.

It’s a mystery because a display dialog just before the return value demonstrates that the substitution was a success.

Any clues as to what might be going wrong? Or what I should try next?