Correctly use cssClass set in custom formatter

The div string is being pushed to stringArray even before the customformatter was called. This was causing the cssClass set in the customformatter to be ignored for the cell. Becomes problematic if each cell value determines the cssClass inside the custom formatter.