Fixed packet length check that failed it body is empty.