Add explicit check for nullptr before destroying SDL objects

This is not really needed as SDL has these checks internally,
but this way it's still safer and more apparent that moved-from
objects are handled properly.
Update README