Fix for issue #187

When last session variable is unset, delete `data` attribute instead of setting it to ''.