Strange things happen when you Undo a paste of geometry and materials. Sometimes it leaves a unselectable wireframe of the pasted geometry after undo. Other times it leaves behind the materials from the 'Undo' pasted geometry.
To repeat the bug, open an existing file with geometry and materials. Copy geometry with multiple materials. Open a new file. Paste. Undo. See strangeness.