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

The current definition does not cover the case that the input type is void.
Sorry for the trouble and thanks for the helpful instructions!