Bug fix for script-only completion

Output mode was not set to JSON unless a project was loaded