Fix Timesheet.add_entry()

The function raised an IndexError exception if it was called on a timesheet
with a date but no entry in it.
Don't add trailing empty lines when using Timesheet.add_entry()