Don't crash if router.id is absent
@@ -259,6 +259,7 @@ class RouterEntity(EntityAdapter):
return self.attributes.get('id')
def create(self):
+ if u"id" in self.attributes.keys():
for ch in self.attributes[u"id"]:
try:
disallowed = unicodedata.category(ch)[0] in "CZ"
