Fix support for 'ansible-playbook --check' mode

These changes should allow 'ansible-playbook --check' mode to pass
correctly and not stop the Ansible run due to missing variables.