Applied patch from jira issue - OFBIZ-7556 - Error occurred when making notes private/public from project screen. Thanks Deepak Baghel for the contribution.