Add a workaround to make collectKeyword script support field added with schemaextender