Fix #715: Selection lost when update recorded

Selection becoming lost when first row (id=0) is selected. A row id check was
only checking for a truthy value