How to reproduce
Set a jukebox with a recorditem
/setblock ~1 ~ ~ minecraft:jukebox{RecordItem:{id:"minecraft:dirt",Count:1b}}/setblock ~1 ~ ~ minecraft:jukebox{RecordItem:{id:"minecraft:dirt",Count:1b}}Remove the item
/data remove block ~1 ~ ~ RecordItem/data remove block ~1 ~ ~ RecordItemRun command to see the tag still exists
/data get block ~1 ~ ~/data get block ~1 ~ ~
You can find more of these issues with most "optional" tags. So even if it would be convenient to have some of these fixed, in the general case, I think it falls under the "changing the nbt in the block/entity lifetime" category.