Add safety check if table has changed

This should fix #832 with a quick check to handle images that are no longer valid for the current table. However, a more complete fix will be to properly cancel image requests when changing topics, which (to do well) requires a more thoughtful refactoring of how we do image loading and caching in the app (added as #904).