When using the legacy API the state of the completed flag should be calculated using the "state" property not the presence of an end date (which can be null on 4.0 servers).