Even if Cycles is not the active render engine, this versioning code could affect Cycles if a material was used with Cylces in another file (using linking). Fix this by spliting the output node into another one that only affects EEVEE.