Fix for issue with builds that have never been run

Was running the app against a TeamCity server that had builds that have never been run. This would throw an error when trying to get the build[0] value as it didn't exist.

Not sure how to write tests for this, bit of a node newb :smile: