check quota when trying to download a file via new -> web

backport of https://github.com/owncloud/core/pull/10290 to fix https://github.com/owncloud/core/issues/10047 in stable7

cc @karlitschek @icewind1991 @DeepDiver1975