Some hooks have a null config. Added a null check.
Merge pull request #52 from rhyolight/empty-hook-config-bugfix

Some hooks have a null config. Added a null check.