Fix type error for empty union types.