Update SCORM_API_wrapper.js

Some LMS's i have experienced are reporting an erorrCode back as NaN for if there is no error. This is an issue on there part and breaks the wrapper. 

This doesn't break anything for LMS's that report back normally in my experience.