receipts: fall back to localStorage (bug 1021918)

@mstriemer r?
Might be worth checking if they have `localStorage` before using it.