Improve verification for custom matcher

This change also avoids run time error(index out of range).

Users may write following configuration by mistake.
Then run time error is not preferable for them.
```json
{
    "CustomMatcher": {
        "SomeCustomMatcher": [
        ]
    }
}
```