Fix KeyError when interface extension is encountered before interface.