Avoid saving empty data on autosave event