If no assetIds exist don't query API

If empty query is sent then the service is sent as “undefined”
resulting in an error response form server