Core/Items: Fixed a crash happening if items moved from bank were merged with items in inventory

Closes #9345
Core/Players: Corrected online flag set in database when logging out, spotted by e000

Closes #9310