fix sql error when getting bug suggestions [Fixes #59974750]

The error was caused by a wrong usage of RefdataManager.get_bugs_suggestion. I wrote it to expect a string, while I was passing potentially a list of strings in the parse_log task.