add_page functional - fixed error when trying to add page for nonexistant category