Check the router object exists before adding interface

Before this fix the add_interface was called before
checking that the router was present.

Change-Id: I091b2cab339fd8dd9df102dcd22826bcabe109a7
Merge "Check the router object exists before adding interface"