Fixed null reference when attempting to set favourite device