Make sure the end-of-response packet ID equals current packet ID + 1

Signed-off-by: Lilis Iskandar <veeableful@gmail.com>