Added little safety check that may prevent some crashes if the tableview is not configured.