Corrected improper use of cfg["foo"] comparison in unit.cpp

Changed from cfg["foo"] > number, to cfg["foo"].blank() in 2 if statements.