On the calculation of the nucleon electromagnetic form factors in light-front dynamics