Changed way of splitting table in print version of report

@sravfeyn @esoergel Now only 3 rows are put in first page of the print(5 doesn't fit into first page).
http://manage.dimagi.com/default.asp?144156#834710
Use '===' to compare with '0'.