Trashbin fixes

fixes the trashbin in master. Beside other issues it should also fix https://github.com/owncloud/core/issues/5124

cc @DeepDiver1975 please have a look. Thanks!