[VOL-3891] Avoid runtime error due to missing packet Id

Change-Id: I21b29fa34df7c0e01c81df1a343e4b9bfa5483b3
diff --git a/rw_core/core/device/logical_manager.go b/rw_core/core/device/logical_manager.go
index 48aa38f..e8e28f7 100644
--- a/rw_core/core/device/logical_manager.go
+++ b/rw_core/core/device/logical_manager.go
@@ -567,7 +567,8 @@
 		}
 		if err != nil {
 			logger.Errorw(ctx, "failed-to-receive-packet-out", log.Fields{"error": err})
-			go ldMgr.SendRPCEvent(pktCtx, packet.Id, err.Error(), nil,
+			// we do not have the resource Id here due to error in the packet, setting to empty
+			go ldMgr.SendRPCEvent(pktCtx, "", err.Error(), nil,
 				"RPC_ERROR_RAISE_EVENT", voltha.EventCategory_COMMUNICATION, nil, time.Now().UnixNano())
 			continue
 		}