prevent throw exception if has default value

prevent throw exception if parameter has default value
Merge pull request #1 from bruno-barros/master

prevent throw exception if has default value