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