Cast empty string to nil in enum

When using webforms we do have empty Strings quite often as a result in optional Selects. This pr fixes the exception in Datamapper