The first call happens right after we modify `ActiveRecord::Base.configurations`. Since we grep through it for the shard names, it returns an empty hash.