Return nil if CSS array has no contents.

Fixes #2138