CORE-341 Script error when filtering by object

Story: https://reciprocitylabs.atlassian.net/browse/CORE-341