CSS: Don't choke when json decoding fails (#1118)

Fixes #1118.