Fixing hook return value when the message type isn't for workflow notifications.