Fixed bug where selectRow(index) was being called on undefined rows