fix #1013 Data model undefined when mac in error state

This commit fix a problem with the MAC that was resetting the data model to undefined when the user was inserting an invalid item.