Fix consuming result/error event in local storage.

This commit is a fix for a bug where the local storage doesn't stop
bubbeling a result or error event, even though the callback chooses
to consume it.