Fix segfault when openeing a pure map.

It was caused by trying to access the tod manager which is a null
pointer in this case.