Fixed validation of zero value
Merge pull request #11 from exskiller/validation-fix

Fixed validation of zero value