Fix note rename dialogo freeze

Sometime when renaming note and link rename is requested,
dialog does not have the proper focus and is not responsive.