Fix rename notebook - show error with invalid name

Before the dialog was closing anyway so you couldn't see the error message.
Merge pull request #3692 from rcl33/notebook-rename-dialog

Fix rename notebook - show error with invalid name