On magnetic-field-induced dissipationless electric current in nanowires