Avoid empty session name in auto-save query.