Stricter checks to prevent #156

* log content hidden via CSS bigger than 1 kB
Merge pull request #158 from macbre/fix-156

Stricter checks to prevent #156