Safe guard the getting the object name on errors