Only allow XML response if repo has a build

Should fix [this error](https://app.getsentry.com/travis-ci/travis-api/group/7983882/) in Sentry.