Pass window.id through if not None
thank the thankless
Merge pull request #336 from ombre42/window-ids-unexpected-type

Pass window.id through if not None