Made Theme::basePath optional fixes #2810