fixed an error after publishing a page who's parent is not yet published