coverity/13749: fix negative array index read in unset_global_local_option
Merge pull request #1085 from paulburlumi/master

coverity/13749: fix negative array index read