In the case of my scenario, the NPC is wearing an amulet-like object (neck) which is the source of the darkness effect. It's not a standard DMG wondrous item, but all it does is affect a continuous darkness - my players have yet to discover the limits of its power. When the wizard transformed into the bat, the dark amulet was included into the new form, just as any other magic item would.