fix broken thubmnail for saved relationship field when post type is attachment