Feature 11073: fix profile retrieval from app instance during app deletion

Change-Id: Iaf3e2e40220cb76fcdf478855af109ee3c6e4c46
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/osm_nbi/k8s_topics.py b/osm_nbi/k8s_topics.py
index 333969a..9b5b84d 100644
--- a/osm_nbi/k8s_topics.py
+++ b/osm_nbi/k8s_topics.py
@@ -1567,8 +1567,8 @@
 
         # Check if the profile exists. If it doesn't, no message should be sent to Kafka
         not_send_msg2 = not_send_msg
-        profile_id = item_content["profile"]["_id"]
-        profile_type = item_content["profile"]["profile_type"]
+        profile_id = item_content["profile"]
+        profile_type = item_content["profile_type"]
         profile_collection_map = {
             "app_profiles": "k8sapp",
             "resource_profiles": "k8sresource",