This fix should be safe since it (apparently) worked in practice before,
which likely means that zEnd is not used in the case where zCsr is NULL.
This means it likely doesn't matter what value we assign to zEnd when
zCsr is NULL as long as it has defined behavior.