Correct travis-buildpages so that PR builds work

TRAVIS_PULL_REQUEST is set to "false" for a master build and the number
of the pull request in question otherwise.

Also, instead of exiting, at least test whether sphinx runs without
error.