fix sails.hooks.response check