This is a fix for a similar problem to https://confluence.atlassian.com/display/FISHKB/Search+fails+with+error+-+Can%27t+associate+project+project-name-here+with+entityId+PROJECT-NAME-HERE?utm_source=SAC&utm_medium=hercules-issue-view&utm_content=484960