util/when: assuring rejection path

util/when never failed its promise, nor did it handle an empty call to when().