Fixed Bug 8046

Fixed issue with permanent statuses being removed during logout for memory-freeing operations, special thanks to streusel and all those who contributed to the bug report.
http://hercules.ws/board/tracker/issue-8046-cart-disappearance/

Signed-off-by: shennetsind <ind@henn.et>