Fixed #297. Allow to filter plans by passing email to the filter.

The issue occurs that we didn't pass the second argument the plan name
into _check_plan_by_email().

Though the code is not very efficient. See #304.