Bug 980468 - Ensure that content script syntax errors can be caught.

Fix for https://bugzilla.mozilla.org/show_bug.cgi?id=980468