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

brev/nupic.tools,numenta/nupic.tools,numenta/nupic.tools,rhyolight/nupic.tools,rhyolight/nupic.tools,brev/nupic.tools