Fix for legacy_playbook_variables (should fix issue #4254)

This should fix Issue #4254