Do not attempt to get version history if we don't have a session.
Added getAsString(Item, Session) method to be able to provide the session to use to output the JSON.