Fixed issue when a non existing resources first real parent is the page that defined ./errorPages