Validate number of vblanks in multi wait.

Fixes #1922.
Merge pull request #1964 from unknownbrackets/display-wait

Validate number of vblanks in multi wait