Fix NPE in TreeSet

This seems to fix first() and last() when using BTreeMap as a NavigableSet - fixes #57