Get rid of passing a reference
Get rid of passing a reference

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

bluelml/core,jbicha/server,sharidas/core,whitekiba/server,owncloud/core,nextcloud/server,michaelletzgus/nextcloud-server,cernbox/core,bluelml/core,xx621998xx/server,michaelletzgus/nextcloud-server,nextcloud/server,pmattern/server,cernbox/core,pmattern/server,andreas-p/nextcloud-server,pollopolea/core,andreas-p/nextcloud-server,pollopolea/core,pixelipo/server,whitekiba/server,endsguy/server,whitekiba/server,sharidas/core,jbicha/server,jbicha/server,cernbox/core,IljaN/core,whitekiba/server,owncloud/core,whitekiba/server,pixelipo/server,Ardinis/server,endsguy/server,IljaN/core,nextcloud/server,pollopolea/core,pmattern/server,owncloud/core,Ardinis/server,IljaN/core,jbicha/server,michaelletzgus/nextcloud-server,endsguy/server,cernbox/core,phil-davis/core,pixelipo/server,sharidas/core,andreas-p/nextcloud-server,sharidas/core,endsguy/server,bluelml/core,cernbox/core,pmattern/server,owncloud/core,andreas-p/nextcloud-server,pmattern/server,bluelml/core,Ardinis/server,pollopolea/core,xx621998xx/server,bluelml/core,jbicha/server,xx621998xx/server,xx621998xx/server,IljaN/core,pixelipo/server,xx621998xx/server,pollopolea/core,andreas-p/nextcloud-server,owncloud/core,Ardinis/server,michaelletzgus/nextcloud-server,nextcloud/server,IljaN/core,endsguy/server,sharidas/core,Ardinis/server,pixelipo/server