Fixing Store::saveByInsert() to only use lastInsertId() when it doesn't already know the ID