Magnetic fields in mixed neutron-star-plus-wormhole systems