Don't compare an error_code with nullptr.