MDL-69257 core_h5p: Move $maxsize outside the foreach loop