Support null in Object::parse_class_spec().