This commit improves saving of new sessions to only execute batch update operation if there really are any attributes to save.
This commit improves saving of new sessions to only execute batch update operation if there really are any attributes to save.