The problem is with lines 1334 and 1335 above.

`iterable(EmptySet())` is `True` which I guess is the desired behavior. So, putting a condition `args[0] != EmptySet()` should do.