The version check should come before the call to `loadTemplates()`.