Fix for GF38199

Infinite loops possible when bindings looked at the '$' hash in specific scenarios.