Core/Transports: Fix possible crash

Fix a crash happening when deleting an instance with transports. This case doesn't appear in current sources but could have happened in ICC and HoR.
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into teste2