Fixed Bug #7192

Fixed Buying Store for 2012-07-10 onwards clients, special thanks to Yommy <3
http://hercules.ws/board/tracker/issue-7192-crash-when-closing-buying-store-customer-2013/

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