Fix #854

Fix all crashes with right click on empty row.