It seems this function might miss to write ratings into the tags of the new files.
Maybe this is related to this problem. A capital "D" in "H2_RATING = Default=102" was the problem of that.
You can test this with this file: https://owncloud.matzerath-online.net/index.php/s/3WNOeHHrFMylSJB
When you test this, do you just replace this ogg file with a FLAC file?