[ST-547] Fix contact record filter

See the ticket for a summary, but this essentially makes filtering of contact records with the new UI behave properly.