Fix empty pool bug

Empty pools were using the wells.first for sorting, but wells first
was nill. Now falls back to all_wells.first in the event that all
wells have failed. Results in an empty well on the target plate, but
I think this is the prefered behaviour.