Better handle return values from Filesystem::getMountBy*

getMountByStorageId and getMountByNumericId return an empty array on error,
which should be detected to avoid possible errors. This commit also adds in
some new logging points and throws to aid debugging
Merge pull request #8285 from owncloud/better_getmountby_handling

Handle return values better from Filesystem::getMountBy*