Handle MiddlewareQueryException in parseWorkbook