Catched bad dates by returning "-1" as duration, indicating an error.

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>