Fixed PhantomJS plugin loader to wait until all plugins are loaded.