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.