PR #41 (check that the LC end date found is later than the document date itself).

Fixed a bogus manual merge in my previous merge from master.