$owner is not defined here

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