Do not crash when no interfaces are registered.

Change-Id: Idee3bb5821e8b46da78243f6396780b35f23e30a