fix NullType MatchError in JavaSchemaRDD when sql has null