IDE-1739 Should reture empty list or new properties instead of null

The for loop will not be executed if the list is empty