Added defensive null check because I had a segmentation fault when reading a possibly malformed xmi file.