Looks like this was added by commit 671120f31943784338fa28a5fb231d05e2ca3eee to fix an NPE. I can do a check if the LIST is empty. But then the for loop wouldn't run anyway. And our implementation uses query.list() which does not say it returns null if nothing is found.

I don't think we should throw an exception here nothing catches it, it would result in a BadRequestException to rhsm-web.