debug: added try-catch for email label scan

Some peoples' inboxes trigger a "cannot read length of undefined" exception. Added try-catch with an alert to help debug those rare cases. The window alert should be removed before production launch.