Fix the length 0 case

If ecx is 0, esi might point to a bad page.