Clear tracked object when data sources are removed.

NOTE: This should not be reviewed or merged until #1116 is merged.

This fixes a bug (regression?) where switching data sources causes serious problems if the camera is tracking an object.  Ideally it would only do this if the object in question were part of the data source being removed, but it wasn't clear to me how to implement that.