This assertion could be hit if the player died and the engine tried to play a sound for the now destroyed ship. Since the existing code already had a check for the case that the object is an observer I just added another case for OBJ_GHOST.