Issue #3084945 by Taran2L, mcdruid, kiamlaluno: Trying to access array offset on value of type null in _batch_finished()