Fixes U4-2587 Regression: Hide Preview Button on nodes that have no template

Now also checks if the template still exists and if it's allowed on that document to determine when to enable the preview button
Merge branch '6.1.4' of github.com:umbraco/Umbraco-CMS into 6.1.4