Fix exception in OFFLINE appcache event hander.