receipts: fall back to localStorage (bug 1021918)

@mstriemer r?
Fixed. Good call because appSelf was passed around to some functions that didn't even use it.