Additional information. Query "RESET transaction_isolation;" in previous message can be replaced to synonym "SET transaction_isolation=DEFAULT;" (error will be the same).
I attached file with simple fix for branch "master".
I not sure that need to use a separate block of code for the "transaction_isolation" GUC-variable. But this is a special variable and there are several places in the code with handling of this variable.