I lost two of my Legendary weapons this way, my little ship carrying them got destroyed, I came back with a bigger one and when I tried to get them back, they wouldn't go into my ship, they'd follow me around but my ship didn't seem to be able to gather them.
So yes, I believe this is a bug.