Correctly calculate totals with unclosed bookings (PTC-108)

An empty endTime caused an error in the timehelper.

If the endtime evaluates to false, we can just skip the booking.