The market's worst-case oil scenarios were largely avoided due to persistent optimism that the war would soon end.