Fix exception when service is removed while there are pending packets that depend on it
Fix exception when service is removed while there are pending packets that depend on it

mashaoze/esp-idf,mashaoze/esp-idf,mashaoze/esp-idf,armada-ai/esp-idf,mashaoze/esp-idf,armada-ai/esp-idf,espressif/esp-idf,www220/esp-idf,armada-ai/esp-idf,espressif/esp-idf,mashaoze/esp-idf,www220/esp-idf,espressif/esp-idf,www220/esp-idf,armada-ai/esp-idf,espressif/esp-idf,www220/esp-idf,www220/esp-idf