Better fix for viewport broken on hide.

// By refusing to return 0 for either width or height, later operations
do not resolve to NaN.