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