[SPARK-3705][SQL]add case for VoidObjectInspector to cover NullType

add case for VoidObjectInspector in ```inspectorToDataType```