change to null instead of false on getting the parent and target page

This pull request fixed the issues :  #317  & complement the solution on ticket #333