Fix projects endpoint being improperly called for project ID fetch

This check affects the check for existence used before retrieving data for the project's organizations.

Merge request reports