Check that player killed the monster before writing the memorial entry

Fixes #6102