[hibernate-issues] [JIRA] (HHH-13158) EntityManager.getReference behaving inconsistently