Fix error paths in action_hangup() for AMI Hangup action.