lifecycle: Separated registerLoopbackInterface for reuse in operations.
lifecycle: Added guard against empty IPv4 data.

This might happen when an interface is added dynamically and the IPv4
address has not yet been assigned to it.