Constraining f(R) gravity models with disappearing cosmological constant