Fix bug introduced when functions new_object() and session_object_exi…

…sts().

The boolean variable is_object_new was not set and handled correctly.
latest commit dca4466eb1
Watson Yuuma Sato authored