Thank you for reporting!
Can you give some details how the bug occurred, so that I can test and fix it?
I have also encountered this problem once. I think it happened when I tried to pick up a weapon when I already had one. I was also using a spear, and possibly tried to pick up another spear. The invisible spear still functioned though and reappeared when I threw it.