Fix `add_users_to_cohort` and `add_user_to_cohort`

When a user is being added to a cohort, verify that they are enrolled
in that cohort's course.  Also handle the case in which the requested
cohort is not found for the requested course.