Update resource_filter.js

If the wrong field value "populate" script fell with an error:
"TypeError: Cannot read property 'caster' of undefined"