Fixed error occurring when grid action buttons were pressed and no row was selected.