[PATCH 5.9 305/757] dmaengine: dmatest: Check list for emptiness before access its last entry