Hide legend if corresponding tracks are all turned off