LPS-42205 Add checking for "borderless" portlet, so it can get the actrual portlet object.

Please help to review.
Thanks.