Fix 500 error on nonexistent project