list teachers: fixed error if teachers ids parameter  is empty