Save 3 LOC by consolidating empty width sum into main loop.
Add tests for malformed row data case.