ECMS-5816: Cannot display the documents search result in Unified Search ...

...if have NullPointerException while getting PageState

Link issue: https://jira.exoplatform.org/browse/ECMS-5816
Fix description: Return false in the hasPortlet() funtion while the current page have no PageState.