Use the value of the "leak_memory" config item, not its length, to determine whether it is set.

refs #845, #982