Correct bug in RenameDialog

This will allow renames of NXroot objects.