Fix PHP warning on empty news table

Fixes #358