Fixes #918, duplicate post when creating a post from the media library