fix error querying model aliases where pk is absent