Fixed crash when buying items without a character selected