When executing this query I'd expect this query to throw an exception, since the object does not have record types. but it doesn't. Why doesn't it throw an exception
SELECT Id,
(SELECT Id, ContentDocumentId, LinkedEntityId
FROM ContentDocumentLinks
WHERE
LinkedEntity.Type = 'CustomObjNameWithoutRecordTypes' AND
LinkedEntity.RecordType.DeveloperName IN ('Hello', 'Goodbye'))
FROM ContentDocument