Don't rename when there is nothing to rename.
Merge pull request #355 from Dignifiedquire/rename_undefined

Don't rename when there is nothing to rename.