Bugfix: check if table is disposed or null