No, we don't have an automated way of fixing it - it seems surprising that we even allowed empty codenames...
What you need to do is to go over the json in the dump and change all codenames to valid ones. This might be as easy as to use a search and replace, but I'm not sure at this point if you might have more than one testcase on the same dataset with empty codename, in which case you probably want to change to different ones.
I don't think they're referenced anywhere else so you can just replace all occurrences of `"codename": ""`.