Improve error handling of PaperScripts on Firefox.
Merge git://github.com/paperjs/paper.js