Thanks! This was indeed a bug.

ent_bonehandle writes the bone name into the string when only the index is given. This should not happen here since the name is given, but for some reason the function still checks if the name is writeable. This will be fixed in the next update.