Issue #164: Resolving notices when retrieving IDs of new entities.