prevented add() from adding duplicate nodes; fixed error when looking for data-attribute nodes that don't exist