Fix execution of hooks
Check that dict entry is not empty
Merge pull request #8 from jsks/hook-fix

Fix execution of hooks