Prevent non-object errors on in-browser receipt. CLoses #2854