Fixed 'Bug 12588 - System.NullReferenceException: Object reference not
set to an instance of an object during Rename'.