When an environment is removed on the server (dispatcher), there can be multiple tables with rows still pointing to it.

Rows in these tables should be removed when an environment is removed (or we need to make every instance of environment_id handling more generous)

pifr_result
pifr_client
pifr_client_test
pifr_environment (probably already being done)
pifr_environment_status
pifr_test_environment

See also: #1235130: User Error: Plugin [] does not exist (when running Drupal 7.x coder test from qa.scratch), #1061686: pifr_result has environment_id=0, results in require_once(/.server.inc) fails