Added error handling for empty switcher position
Merge pull request #15 from mlcrazy/errfix

Added error handling for empty switcher position