This matches the Windows behavior: the contents/size of an IMMDeviceCollection do not change after it's created. Any unplugged devices remain in the collection (but with a changed state).
This shouldn't change anything on Wine since it currently doesn't add/remove devices after initialization, but is needed to add that in the future.