Improve robustness of build results fetching code.