In line 1021 we have this statement:
links = disambPage.linkedPages()[:1]
linkedPages() is a PageGenerator and doesn't have a __getitem__ attribute.
This is a difference to old compat where linkedPages is a list, not a generator.
There is another issue that tempatesWithParams gives a Page object in first tuple item but not a string
I am not sure whether this bug resides on other scripts, too.