Modify logic of electronic receipts to fix bug

Modify some electronic receipt-related logic to support the possibility
that there isn't any receipt type. Change operators to AndAlso for
short-circuiting behaviour.