fix a bug in the autogeneration of parameter conversions
use default value in case of error converting parameter