A gConfig.getValue, the way used here cannot not be defined.

If a value is set to 0 on purpose, then the removed code makes the agent
fail.
add value check if it's a number
Better type checking
Separate numbers and strings
Merge pull request #78 from sposs/fixgConfig

A gConfig.getValue, the way used here cannot not be defined.