ConfigDialog: Fix bug reported by Jon Daniels, and clean up code a bit

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@14707 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd