Fixing some small bugs around quality score handling and error reporting