Fixed html processing bug for empty tables and added test file