fix wrong npages when closing

`xd->npages` doesn't increase by one as it does in `CairoGD_NewPage()`.