added a failsafe to combat chrome.alarms API in production