Fix JT-21887: do not take in account projectId = 0