KAZOO-1800: fix variable extraction from record