When _hooks cannot be found, log stack trace to the console

This will hopefully facilitate debugging such issues.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>