fix crash in regexec for nonzero nmatch argument with REG_NOSUB