Fix bug 2156 to select correct WIM connector class and prevent exceptions with missin...