angularjs: allow $q.when to be called w/o args

The current definition does not cover the case that the input type is
void.
Fixup
Fixup
Merge pull request #2539 from xi/feature-angularjs-when-void

angularjs: allow $q.when to be called w/o args