Fix missing index when fetching subnet for router interface.

Change-Id: I7c06d8b2ccbdfcd0c005090a322e84d328b059f5