Fixed a bug in findClient and findPatch where the RegExp object from the config context was not recognised.