Fix NPE bug when unparseable ID has associated attributes