Limit cohort formatter to cohorts from projects user has permision for

Fix #376.

Signed-off-by: Don Naegely <naegelyd@gmail.com>
Use `if projects is not None`, otherwise the queryset returned from line 68 will be evaluated.