Check return value correctly in sixel decoder