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

Please help to review.
Thanks.