GTK: Fix prev/next button insensitivity logic in the EOS handler