Corrected error when pressing delete button with empty table