Sure, it's hard to measure the value of assets. But look at it this way: In the long run, every company dies, so assets always go to zero. What investors (in aggregate) are left with is the net sum of dividends paid out.
To answer "what is the most valuable company in history" I would look for the company which paid out the most in dividends before it expired. Stock price is largely a measure of which company has managed to attract the most suckers.