Fix empties removal in `mergePages`.

The first page in `singles` in `mergePages` is the parent, not one of
the empties, but it is removed as one of the empties. This didn't break
the merge because a new version of the parent is then copied into place.

It is wrong. It is now fixed.

Closes #297.