Check pointer validity in SpriteBatch

It's safe to delete a nullptr so a check for that is not required