Added extra test to see if ProgressEvent is a function and not Object. T...

Fixes issue #409