reverted dispatching to original version
prevent IE error when deleting non existing localStorage items
catch IE error when firing custom events