Add guard for phantomjs.
Add guard for phantomjs.