Issue #3489179 by godotislate, ghost of drupal past: Referring the same entity multiple times breaks _referringItem (cherry picked from commit 40c1ab52)