#26483 Fixed a bug where engine hooks couldn't be configured.
This resolves an issue which was causing new-style engine hooks not to
be overridable - if you tried to override an engine hook with your own
implemention, an exception would be raised. Closes #113.