Fix PHP warning on empty news table

Fixes #358
Merge pull request #361 from TheSerapher/issue-358

Fix PHP warning on empty news table