Issue #2370319 by eshta: Added client-side selector validation to ensure selector is valid and matches a single DOM element.
Merge branch 'Issue-2370319' into 7.x-1.x