#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.
just a grammatical error... 

> will therefore see get an error