Fix several bugs (see details of commit).

- After scanning "this upc is not in the DB", the system crashes.

- When we rescan an item that is already in an order, show the number that the user already inputted.