Fix potential exception in sync when tracks to sync isn't set