Cannot reproduce.
This is an intentional feature because items on a player are only registered upon respawn.
Try disconnecting your internet and reconnecting, this is common to see with internet issues. Your multiplayer ports may be closed as well
Thank you for the report
However, this is a bug tracking forum and we can't help with technical issues.
This is a part of Minecrafts physics mechanics to avoid suffocation.