Fix JS error when highlighted field missing