Core/Battleground:
Add missing NULL pointer check for player if is not in world

Core/Spell:
Add absolute value for delta because this can be nevgative

Close #10846