Fix addCssStyle helper bug for array format

Correct the `addCssStyle` helper function to rightly detect the style parameter passed as array format.