I am looking at portal::page::get_id and not portal::element::get_id :) So its either we put a nice error or we create a new page. I am more for maybe the error or returns something like 0 or something it case it does get a page id.