CORE-583 Script error on admin dashboard filters

**Since we are in code freeze on grc-test, don't merge this just yet**

This is the minimum amount of code changes needed to fix https://reciprocitylabs.atlassian.net/browse/CORE-583, but the filters on admin page will need more work.

The main issue is changing the filters before all `person_roles` are resolved as it causes a huge slow down (I don't know why, though).