Fix error that was being thrown by the command line runner when phantomjs returns an empty line at the end of the spec json.