Fix warning triggered for sequences of zero length.