Fix bug 2017: Skip exception if model has been removed