Check that post ID exists before changing metadata