Skip over invalid builds when polling

[Fixes #71963264]