make sure the page exists before displaying the button to edit it in WP Administration