fixes undefined appitem - fixes #12396
Merge pull request #12397 from owncloud/fix-undefined-appitem

[stable7] fixes undefined appitem - fixes #12396