changeover log hook: make sure the visit id is a numeric value