Fixes CollectionAssociation#ids_reader returning incorrect ids for new records
Merge pull request #10901 from armstrjare/fix_query_null_foreign_key_on_new_record_collection_ids_reader

Fixes CollectionAssociation#ids_reader returning incorrect ids for new records