#1172 Added check for precompiled views in Templates and Widgets controllers