Bug fix: #388902
- checking is list is empty and not null, because relation lists from
domain model are never null