fix client version undefined on analytics pings

please review and merge