Fixed pending pages getting left behind when publishing.