A few crash prevention changes

Fixed errors when viewing bills before adding any bills, and also when
calculating percentages without adding any bills.  Did so very
primitively, by adding a flag variable to ascertain whether any bill
data had yet been entered.