Support ngResource promises that return a object instead of a function.