Ensure correct permissions are used when creating a directory for attached files when saving a document, and that we don't try to create a new directory when one exists. Also, null check webBrowserPersist in case it does not exist. r=bz for 115154, sr=hyatt/blake git-svn-id: svn://10.0.0.236/trunk@110649 18797224-902f-48f8-a5cc-f745e15eee43