Minor fix to exclude the bug link entities when it is disabled.