Add fix for reracking when only one rack is used as source

Reracking was failing when the number of racks reracked was 1 (at least when I was testing it). This was applied yesterday to master and is in production. It should be in development too.