Add handling if tags is NoneType