fix for Safari 7

I don't know why the type was detected that way, but in safari 7.0.2 (9537.74.9)  data.constructor.name is undefined.