Correct the logic in DumpCommandHistory when the end index is UINT32_MAX.

<rdar://problem/13270229>