You probably want to skip buildslaves with `connected_to==[]`.  There's no way to write a ResultSpec filter for that, though, so it should just be a condition in the for loop.