(I haven't tested all versions)
How to reproduce:
Get a crossbow and fully charge it so there's an arrow in it.
Drop the crossbow on the floor.
Realise it doesn't have an arrow.
Pick the crossbow back up.
Notice it now has an arrow again.
Environment
Windows 10
Duplicate of MC-137552