Wrapped autosave main function in condition to avoid errors on media multiselect.