EAGLESIX-2351: Fix potential issue with setTimeout

AFIK, this hasn't caused real issues but I'm making the change for correctness.