Fix NullPointerException if DocStruct has no metadata attached