Fix undefined parent suite when phantomjs

The pull-request for issue #81