Cosmological constraints on the neutrino mass including systematic uncertainties