avoid null pointer exception when remove and re-add favorite again