Bug: 12660 Don't query History when we don't need to.

Signed-off-by: Michael J Rubinsky <mrubinsk@horde.org>
CHANGES