[Olena-patches] 943: Add ''non-reference'' check.