Added some safeguard for not found elements in the select tests