fixed KeyboardInterrupt bug when listing snippets

Patch for https://bugs.launchpad.net/ultisnips/+bug/1245168