Handle QR code's with no URI segments gracefully

Instead of crashing if there are no segments in the URI (ie a root url), let's
just direct the user to the root category page.