MdeModulePkg BrotliLib: Fix the regression logic issue in loop