Applied bug fix from trunk r1426734. For more details please refer jira issue - https://issues.apache.org/jira/browse/OFBIZ-5073.
My Portal Preferences error:
Select My Portal > Preferences, displays bellow error.
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen component://common/widget/CommonScreens.xml#GlobalDecorator: java.lang.NullPointerException (null)
Reverting org/ofbiz/widget/WidgetWorker.java previous latest OFBIZ-2628 bug fix, then the problem recovered.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/release11.04@1478495 13f79535-47bb-0310-9956-ffa450edef68