Incorrect project-specific where clause

If user has access to only one project (or if there is only one project
in bug tracker), helper_project_specific_where() function returned an
incorrect where clause when $project_id == ALL_PROJECTS.

Fixes #17073