only warn if the renaming has an actual empty string
Merge pull request #1377 from Pomax/renamecancel

fix #1253 - only warn if the renaming has an actual empty string