Fix IsInitialBlockDownload which was broken by headers first.

But it would be valid for the nodes going from the shortest chain to the longest one, right?