Fixes 'self is undefined' for missing app.receipts