Prevent itemName from being empty
Fix a bug in getting QR code result in IdTagDialog