Details
Description
When adding a Page to a Site, if you call PageEdit.setPosition(int position) where position is greater than the number of pages in a site, an ArrayIndexOutOfBoundsException is thrown.
This should be handled more gracefully and just default to the number of pages in the site +1 so that you can give a high enough number so that the new page will always be placed at the bottom (ie 99).