resource_id check on router gateway, interface delete

This change prevents RouterGateway and RouterInterface
delete failing if create never managed to set the resource_id.

Change-Id: I88ba2dd9b92546fca684dad2f921c6caf8467367
Closes-Bug: #1231805