Bug fix / error catching

fixed a bug causing errors when using Capitalization with custom
wordlists or user dictionary