Fixed handling gateway authentication error
Handle NULL pdu