Fix crash by doing nothing when there are zero rows, also always enable the button