Fix TreeModel::onRowsAboutToBeInserted()