There wasn't any check for empty strings in the rename function of attributes which caused a crash.
This patch doesn't execute the rename function If the new name is empty or if it is the same as the old one.
P.S.
I am not sure I did the submission correctly, anyway this is my bug report:
https://developer.blender.org/T99816