Handle possibly missing routertype attribute in get router

Change-Id: Ibad9a276e71dc943c6673ec18e192ebcd45aa7a2