Pass script errors to jsdom.env's callback.

Fixes #644.