Don't fail on empty package name extraction and handle ERROR element kinds in TypeInfo