             @
         remove: =>
             driver.stop_timer @timer
-            @table_view.remove()
+            @table_view?.remove()
             super()
 
     class @TableMainView extends Backbone.View

                                    ).map (name) ->
                                        id: r.db(system_db).table('server_config').filter({name: name}).nth(0)("uuid")
                                        name: name

                            ).do( (table) ->
                                r.branch( # We must be sure that the table is ready before retrieving the indexes
                                    table("num_available_shards").eq(table("num_shards")), #TODO Is that a sufficient condition?

                                    }),
                                    table.merge({indexes: null})
                                )
                            ).without('shards')
                        )
                    )
                )

            @timer = driver.run query, 5000, (error, result) =>
                ###
