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

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