[DF-1789] fix for crash in Assert