Replace null with ErrorResolveResult.UnknownError instead of throwing an exception.