Fixed verification of chunks.

Got notice: Trying to get property of non-object.