Add a check for null ParentFolder to Rename

It is possible for a ParentFolder to be null, if the ParentFolder has
never been populated. This can happen when the Folder has been created
in the current session. Renaming this folder would throw a null value
Exception. This fixes it.