Made Theme::basePath optional fixes #2810

Fix for #2810