Fix issue when no apps are enabled

Properly initialize $apps array
Merge pull request #10335 from owncloud/fix-emptyapplist

Fix issue when no apps are enabled