Minor fixes

Updated URL regex pattern.

Updated default fromDOM function to return undefined if no value and
field isn’t required.