Version 3.1.3 and older versions are working correctly in situation if a field is a foreign key to a non PK of pointed table. 3.1.5 returns 'null'