Some small improvements in error handling based on exceptions observed at zxing.org