added check to preparePreviousImages

so it doesn't create a placeholder inside a placeholder (inception) when loaded with existing medium-editor-insert content