Having no material is not uncommon, e.g. this can happen in blender when a Curve is coverted to Grease Pencil. If there is no material, we can still regard that stroke as visible, and use the default Grease Pencil material in that case. Pull Request: https://projects.blender.org/blender/blender/pulls/135975