[travis] Improve the check whether the build is from a Pull Request