Fixes #216: Dont set widget id to undefined