Only multiply max_demand if it is a number
Only multiply max_demand if it is a number

Prevents running out of memory when trying to repeat "recursive" a
billion times in a spec. :|

quintel/etengine,quintel/etengine,quintel/etengine,quintel/etengine