3185

Fixed regression #3185 where findElement calls containing apostrophes failed in some instances.
space between `)` and `{`:

```js
if (typeof targetName !== 'string') {
```