I've seen this error pop up before, butnever actually cause any issues until now. This helped pinpoint it!
Adding "if(onCompleteEvent != null)" before the code on line 1121 seems to make everything work fine!
I'll publish the patch shortly!