Make possible to get contact ID from HTML id attribute (#1489414)