Fix NPE on inaccessible id w/ associated attributes