Check for blank lines coming back from phantomjs

Sometimes phantomjs emits a blank line, which breaks the runner. Check for the presence of the data before parsing it.