Fixed uncaught exception when editing tab name