Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
I had this issue and the workaround didn't seem to help. I ended up modifying the script and saving it local then uploading with script management to get it working.