Ensure computeLayout returns sane values when itemsPerRow is 0 (plus test)

Fixes a bug on SC.GridView where the minHeight layout property would be Infinite when itemsPerRow would be 0.