Fix warning when feed is empty

Fixes 
https://github.com/owncloud/core/issues/6943
https://github.com/owncloud/core/issues/8426