[Olena-patches] 933: Add reference check.