SAK-26187 Fix for Making a folder public causes NPE and silently fails to update the setting



git-svn-id: https://source.sakaiproject.org/svn/content/trunk@309143 66ffb92e-73f9-0310-93c1-f5514f145a0a