[GHC] #14540: IndexError: pop from empty list