Fix dont close window when empty rows in search or validation error in New Role