Ensure that we never call a VDP with a zero length unless we are done.

Fixes #1561