Added a failing assertion for #428

Found a problem with the recent #428 pull request when looking up `belongsTo` related records.