When listing tasks for a project, check for context is None and don't
fail.

Slight variation on fix from @virgilr

Fixes GH-1