Adding empty object as model attributes if no attributes are given (instead of undefined)