Improved error reporting in a sandboxed template

shouldn't the key be ``$name`` rather than ``$node```here ?