A more robust solution would be to edit the page template file and remove it there. Then save as new template and choose this as template for the corresponding pages.
You also could suppress the notice by setting the php error level. See php documentation about this. It should be possible to set the php error level in the wp-config.php i think.