qdev: Check if unplug handler exists before calling it