works on empty tables

Hey Erik, I'm just curious, a reasoning behind change of the API to take `loginName` parameter was avoiding need for two lookups (`variantIds for developer` -> `get number of devices for those variantIds`), right?