Fixes 'OnlyTagList' option

Fix for the 'OnlyTagList' option. If set to true, it will limit allowed
tags to the list inside the new 'tagList' option.

References:  #164 and #171
Merge pull request #178 from sebet/master

Fix 'OnlyTagList' option