Fix a server-side crash upon opening treasure chest.