Only render wires if they have a valid material. Fixes #153 and duplicates.