buildrepo: allow querying empty builds