[gui] correct the logic for checking whether we have a sort method

Without this, if you go to Live TV -> Guide and change view mode, Kodi will crash and will continue to crash on startup for all eternity.

@Montellese for review. If this turns out to be valid the backported fix will need fixing as well.