Allow addPage to modify an existing page if it exists.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>