Variable - Rename all

"rename all..." does not work well with an empty custom local block present.

I made issue #2845 at the Github repo.