Fixed issue with null relation lookups.