driver-core: Fix possible null reference in subsys_interface_unregister