Use proper array key

Fixes https://github.com/owncloud/core/issues/12047