Merge request for #4407. Removes the cloning because it wasn't necessary.

I tested that it worked correctly by using running './mach run tests/html/test_timeout.html' and making sure the timers went off.