avoid failure if msgid parsing failed

deals with the case msgIDRegexp.FindStringSubmatch() return “nil”.