Set attribute values to nil instead of taking an empty string parameter