uml: line.c: avoid NULL pointer dereference