Fixes issue #1063: Fatal Error while getting value from ActiveRelation g...