call remove_router_extra_routes only when extra_routes is enabled

 - check if 'routes' is present in the router dict before calling
   cleanup for extra_routes extension

Closes-Bug: #1805235
Change-Id: I055b4053c795554deeaf167922de58ff49c96725
1 file changed