LPS-44765 Avoid NoSuchEntryException when deleting the parent page in trash.

hey @sergiogonzalez, 

I've tried to preserve this 3 considerations when modfiying the if logic (1 and 2 are based on https://issues.liferay.com/browse/LPS-34791 comments):

1. If a parent page is sent to the recycle bin(then deleted) or deleted and the child page is being reviewed(Kaleo) the Child page will lose the parent link, but remain in the portal so the creator of the child page does not lose content if someone else deletes the parent page, since they might not be able to view the child page or see it is in review.
2. If a Parent page and child page are sent to the recycle bin and the child page is restored, deleting the parent page will remove the link from the child page instead of deleting it, since the user may just want to keep the child page.
3. If Parent page and child page are in trash both should be deleted on parent deletion.

Is it right???

 (Added- After the test creation I've realize that when we restore a child if it's parent it's in trash the parent of the restored page is set to blank, SO CURRENTLY CONSIDERATION 2 DOESN'T APPLY)

thanks!