Updated so end date of a resource can be null.