3DSOLID: check for NULL pointers and acc. to R10 compatibility.

Signed-off-by: bert <bert.timmerman@xs4all.nl>