Impact of nuclear effects on the determination of the nucleon axial mass