Fix infinite recursion problem in Window.__getattr__