Fix an issue with inventory counting

When the item read was not suposed to be in the current stock, an error was
happening. Fix the issue and log the all the barcode scans, as well as the
items that caused the problem.

Change-Id: If3d0b3d98a8b112b7265576d1524a0c6897f8125