Better error handling when builds cannot be retrieved for a given stage