test/crypto: fix mbuf reset after null check