Fix case of returning nil ResultIO