Fix portlet assignment context utility