Return nil for nil errors