error catch for dom-id data attribute