avoid error when TeamCity does not return any builds

When TeamCity does not return any builds, avoid trying to splice.