Fixed Bug #7597 / Follow up b7171479a47490ff80bf04849f763158d6d96fac

http://hercules.ws/board/tracker/issue-7597-server-crash/
Signed-off-by: shennetsind <ind@henn.et>