Catch all exceptions coming from lookup plugins

Fixes using $TEMPLATE() and hostvars in a task without a name, among
other things.