Fix rename of a new doc

Forward port of fix for https://github.com/owncloud/documents/issues/269 to master