Fixed table double-clicks registering off cells

Previously, it was possible to click once to select a row/cell in the
table, and then click elsewhere on empty space in the table, which would
get registered as a double-click on the selected cell.

This is fixed by checking whether there's a row present at the current
click's location (thisRow != -1) before executing actions.