XWIKI-9291: When creating a wiki from template the template history is wiped
(cherry picked from commit eb75065ef8ee41d7d8f3ad8d4d0f347fa03922d9)