Fix little bug (finded when tried to unit test)

Ensure no exceptions are thrown in __toString method