Prevented nullpointer when retrieving an null attribute and trying to get a .toString() of it. Fixes #294