Make nil only error chains nil errors