Add option for allowing an empty value in the input instead of transforming it into zero.

The option is by default set to false so as not to hamper backwards compatibility.