fix adding item with no barcode

a new item in a box with no barcode now gets its barcode set to None
instead of '', preventing an error.

fixes #112