Added resume photos synchronization only if all storages are accessible.
Fix crash due to released memory access.