Update handler-utils.js

Need to explicitly check against undefined, otherwise '0' counts as a failed parse.