lib/travisci: handle when build is in progress (not finished), started/finished dates are not set