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

The current definition does not cover the case that the input type is void.
Fixed in 625b9f2