Truly fix PhantomJS bug: it was trying to cast an unexpected output (JS errors, unexpected console.log) as JSON