Fix fails on blank hook and hooks with error
Improve logging in node tasks