Fix loading flag in iframe transport to be false only if we add to DOM