Added check in the event of a null chunk