fix(account): do the data transformation only when data is defined.