Bug 25261: (QA follow-up) Prevent server error on bad barcode