fixed NPE on rename cmd without item in hand