#26843 Hooks not configurable when executed from an engine.

There is logic in the bundle base class trying to resolve `{engine_name}` token, but this fails for any engine level hooks because it tries to access self.engine which obviously an engine doesn't have. The `{engine_name}` token doesn't make sense in the context of an engine. This small fix makes it possible to run engine level hooks.
Sorry, again with the grammar... This is overly worded and should instead simply be:

```
raise TankError("%s: Failed to find the associated engine "
```