Avoid extracting mentions when comment is empty. Fixes #788.