Phantomjs: fix case where we get a request object but no startReply or endReply
PhantomJS: add waitFor loop before parsing stats