Negative differential conductance in nanojunctions: A current constrained approach