Inconsistency of the density-functional theory of adsorption when using computer simulations