Another missed null shared_ptr conversion for gcc.
Do not delete physics objects if it was never created (e.g. preview window)