Check that element selector is valid when replacing html.