Detect PhantomJS crash message and report it

Fixes #304