API was returning 500 instead of 404 due to attempting to load environments for a non-existent project