Fix IndexError when there is a parent revision but no build for it

Reviewers: vishal, cramer

Reviewed By: cramer

Maniphest Tasks: T21685

Differential Revision: https://tails.corp.dropbox.com/D73669