Protect against NPE when toString() is called before object is fully initialized. Spring seems to be doing this (part of of it's debug logging) with newer releases.