Bugfix: prevent access to orphaned handle in data view