css: fix a failing core test

 - prevent empty files from being recognized as CSS
 - also test this in the module