Fix exception on /checkout in Firefox