Core/Transports: Fixed crash happening during teleporting transports

Closes #11793