handle setting Widget.comm = None

which is done in `Widget.close`

fixes loads of warnings in widget test output, caused every time a widget is closed.
Merge pull request #6908 from minrk/del-comm-id

handle setting Widget.comm = None