Search by actual primary key of association (select filter)

Possible fix for #2382
Check before calling klass.primary_key
Update to fixed hmt filters
Do nothing if it's an unsearchable through association