Preventing blank history files

In particular, liquids.history and tiletypes.history don't get written unless they've been used.