Retrieve storage numeric id earlier when still available

The numeric id is only available before the storage entry is deleted, so
get it at that time.
Merge pull request #11546 from owncloud/users-deletewithfilecache

Retrieve storage numeric id earlier when still available