Fixes #777 Dispose of the previous template before adding the same one again.

The fix applied to the Page Engine, disposes the previous template before adding the same one again, there should never be multiple instances of the same template with the same container div.