Fix issue where output would show error even on successful goto definition or find usage