Same problem. I resolved it by deleting the old generated code and insert the gallery from the designer. Now the code looks like this:
<img class=”ngg_displayed_gallery mceItem” alt=”” src=”https://www.–.com/nextgen-attach_to_post/preview/id–327″ />