Fix warning when feed is empty

Fixes 
owncloud/core#6943
owncloud/core#8426