Handle reshares of deleted posts in OpenGraph tags generation code

Small bugfix for #5461