Make toString methods in models able to handle null objects

As with #578, I found some additional NullPointerExceptions during some testing. Again, these should probably not have null values in a live system. But this just isn't where I would think the Exception should come from.