Fixed #2901 causing thousands separators to be applied only to positive values.