Correctly support documented optional args in pollUntil helper

Fixes #5