Support alien cache on hadoop-fuse-dfs which doesn't report size immediately

The function is used for more than alien cache, but when alien cache is on, it returns from the function on the line before the assert.  This just moved the asserts from cache.cc down to the  common function after it has checked for the quota limit being off.  At least that's the way I understand it.