LPS-51660 Check if the selector found an element

@Robert-Frampton @jbalsas