This should show the work-around I recommend.
That said, @dominikleuchter please submit a support case via the accounts portal (same as you would for any other Revit issue) so that we can get a Revit bug created (the root cause is on the Revit side not the Dynamo one).