Don't use default value when passed '0'

( ! '0') === true so if a string of '0' is passed as $value the
default value will be used instead.
Merge pull request #2 from durham-university/integer-default-fix

Don't use default value when passed '0'