SAm-1819: Javascript errors when rich text editor is enabled and IE9 is set to display all errors or FF error console is open

git-svn-id: https://source.sakaiproject.org/svn/sam/trunk@124679 66ffb92e-73f9-0310-93c1-f5514f145a0a