fix(css): return undefined if there is no className
#11594
Closed
undefined if there is no className
#11594