I am not able to reproduce the problem, but the code was incorrectly assuming that `dragElement` was always non-null. I added some safety checks that should fix the problem you saw. Let me know if you can still repro.