Fixed hook commands are triggered even if empty or undefined.