A patch from Rong Nguyen amended by Nicolas Malin for "Approvals function doesn't work for first time" https://issues.apache.org/jira/browse/OFBIZ-5555

Scenario:
1. Go to content webapp
2. Go to CompDoc
3. Find all record
4. Edit any record
5. Click Approvals tab

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1581997 13f79535-47bb-0310-9956-ffa450edef68