simplify preperties in spec before template evaluation

when a hash has only nil values, remove those nil values. Those nil values comes from jobs' spec files when properties are defined but without default values.