Travis Only run the phantomjs browser for pull requests, echo 0 for others

For pull requests, now it runs phantomjs for the entire browser matrix. With this change, it only runs the phantomjs once, and quickly exists all others.