Fix shuffle on empty input.